VERSION 5.00
Begin VB.Form frmReportVC 
   BackColor       =   &H00400000&
   BorderStyle     =   5  'Sizable ToolWindow
   Caption         =   "Ventas Caidas"
   ClientHeight    =   2535
   ClientLeft      =   45
   ClientTop       =   315
   ClientWidth     =   3645
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   2535
   ScaleWidth      =   3645
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  'CenterScreen
   Begin VB.CommandButton cmdImprimir 
      BackColor       =   &H00E0E0E0&
      Caption         =   "Imprimir"
      Height          =   615
      Left            =   1560
      Picture         =   "frmReportVC.frx":0000
      Style           =   1  'Graphical
      TabIndex        =   2
      Top             =   1800
      Width           =   732
   End
   Begin VB.CommandButton CmdCancelar 
      BackColor       =   &H00E0E0E0&
      Caption         =   "&Cancelar"
      BeginProperty Font 
         Name            =   "Arial"
         Size            =   6.75
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   615
      Left            =   2400
      Picture         =   "frmReportVC.frx":030A
      Style           =   1  'Graphical
      TabIndex        =   1
      Top             =   1800
      Width           =   732
   End
   Begin VB.ComboBox cboTipoReporte 
      CausesValidation=   0   'False
      Height          =   288
      ItemData        =   "frmReportVC.frx":0894
      Left            =   360
      List            =   "frmReportVC.frx":08A1
      TabIndex        =   0
      Top             =   1320
      Width           =   2772
   End
   Begin VB.Label Label3 
      Alignment       =   2  'Center
      BackColor       =   &H00400000&
      Caption         =   "Reporte de Ventas Caidas"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FFFFFF&
      Height          =   372
      Left            =   120
      TabIndex        =   4
      Top             =   360
      Width           =   3492
   End
   Begin VB.Label Label1 
      BackColor       =   &H00400000&
      Caption         =   "Tipo de Reporte"
      ForeColor       =   &H00FFFFFF&
      Height          =   252
      Left            =   360
      TabIndex        =   3
      Top             =   1080
      Width           =   1212
   End
End
Attribute VB_Name = "frmReportVC"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cboAno_DropDown()
HacerTab KeyCode
End Sub

Private Sub cboAno_KeyDown(KeyCode As Integer, Shift As Integer)
HacerTab KeyCode
End Sub

Private Sub cboMes_KeyDown(KeyCode As Integer, Shift As Integer)
HacerTab KeyCode
End Sub

Private Sub CmdCancelar_Click()
    Unload Me
End Sub

Private Sub cmdImprimir_Click()
    cual = 0
            
       On Error Resume Next
        
        If cboTipoReporte.Text = "" Then Exit Sub
        If cboTipoReporte.Text = "Recursos Humanos" Then cual = 1
        If cboTipoReporte.Text = "Gestoras de Cobros" Then cual = 2
        If cboTipoReporte.Text = "Unidades de Venta" Then cual = 3
        
        rutareportes = DE.rsGENCParametros.Fields("RUTA_REPORTES")
      '  MDI.Reporte.StoredProcParam(0) = cual
        
        If cual = 1 Then
            ' Todas las marcadas que esten en el temp
            Imprimir rutareportes & "ventaCaiRh.rpt", "", "", "", ""
        End If
        If cual = 2 Then
            ' Todas la Consulta
            Imprimir rutareportes & "ventaCaiGestores.rpt ", "", "", "", ""
        End If
        If cual = 3 Then
            ' Todas la Consulta
            Imprimir rutareportes & "ventaCaiUnidad.rpt", "", "", "", ""
        End If
        
            
    
    
    
    
    
End Sub

Private Sub CmdImprimir_KeyDown(KeyCode As Integer, Shift As Integer)
HacerTab KeyCode
End Sub

Private Sub Form_Load()
    Left = Screen.Width / 2 - Width / 2
    Top = (Screen.Height / 2 - Height / 2) - 800
  '  LimpiarObjetos Me
End Sub


